﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace 显示与隐示类型转换
{
    class Program
    {
        static void Main(string[] args)
        {
			int i = 1;
			double d = 1.3415;
			d = d+i;//隐式类型转换,小转大则隐式类型转换
            Console.WriteLine("转换为double型:{0:0.00000}",d);
			int e = (int)d;//显式类型转换,大转小则显式类型转换
            Console.WriteLine("转换成int型:{0}",e);
        }
    }
}
